<%-- 
    Document   : add_Chargestration
    Created on : Aug 29, 2013, 3:25:31 PM
    Author     : hb
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ADD CHARGER ...!!!</title>
        
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
         <style type="text/css">
            table.styletable{
                font-family: verdana,Times New Roman,sans-serif;
                font-size:11px;
                width: 100%;
                color:black;
            
            }
            table.styletable td {
                background:#ff99ff;
              
                padding: 8px;
                
            }
            h1{
                color: white;
            }
        </style>
        <script>
            function CheckValid()
            {
                var price = frmupcharges.txtPrice.value;
                var reg = "\\d+";
                var n = price.match(reg);
                if (frmupcharges.txtDur.value === "") {
                    alert(' Duration can not be empty ');
                    frmupcharges.txtDur.focus();
                    return false;
                }
                else if (!n) {
                    alert(' Price can not be empty and must be a number ');
                    frmupcharges.txtPrice.focus();
                    return false;
                }                
                return true;
            }
        </script>
    </head>
    <body>       
        <p><h1  align="center" class="h1">Add Chargestration</h1></p
        <form  id="fr" name="frmupcharges" method="POST" action="Add_ChargesForRegistration">
            <table class="styletable">
                <tr>
                    <td align="right">Durcation</td>
                    <td><input type="text" class="gwt-TextBox" name="txtDur" value="" /></td>
                </tr>
                <tr>
                    <td align="right">Price</td>
                    <td><input type="text" class="gwt-TextBox" name="txtPrice" value="" /></td>
                </tr>
                <tr>
                    <td align="right"><input type="submit" value="Submit" class="gwt-Button" name="btnSub" onclick="return CheckValid()"/></td>
                    <td align="left"><input type="reset" value="Reset" class="gwt-Button" name="btnReset" /></td>
                </tr>
            </table>
        </form>
    </body>
</html>
